// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router';


import settings from "./settings" //開發配置文件
Vue.prototype.$settings = settings;

//導入element
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

//全局初始化央視
import "../static/css/reset.css"

import axios from 'axios';//從node_modules目錄中導入包
//允許ajax發送請求時附帶cookie
axios.defaults.withCredentials = false;
Vue.prototype.$axios = axios;//把對象掛在vue中

Vue.use(ElementUI);//調用插件

Vue.config.productionTip = false;





//引入字体图标
import "../static/css/iconfont.css";
import "../static/css/iconfont.eot";
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
//注册mavon-deitor组件
Vue.use(mavonEditor);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
